package com.yellowpage.client.data;

import java.sql.Timestamp;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * UserInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_info")
public class UserInfo implements java.io.Serializable {

	// Fields

	private Long id;
	private String versionStr;
	private String muid;
	private String custId;
	private String username;
	private String password;
	private String esn;
	private String phoneCateg;
	private String phone;
	private String imsi;
	private String classid;
	private String status;
	private String type;
	private Integer levelId;
	private String name;
	private String telphone;
	private String email;
	private String sex;
	private Date birthday;
	private String pno;
	private String province;
	private String city;
	private String district;
	private String adress;
	private String addChannel;
	private Timestamp addTime;
	private Integer telIntegral;
	private Integer slIntegral;
	private Double balance;
	private Timestamp lastLogin;
	private String lastIp;
	private String seqno;
	private String macKey;
	private String certificatetype;
	private String certificatecode;
	private String field1;
	private String field2;
	private String field3;

	// Constructors

	/** default constructor */
	public UserInfo() {
	}

	/** full constructor */
	public UserInfo(String muid, String custId, String username,
			String password, String esn, String phoneCateg, String phone,
			String imsi, String classid, String status, String type,
			Integer levelId, String name, String telphone, String email,
			String sex, Date birthday, String pno, String province,
			String city, String district, String adress, String addChannel,
			Timestamp addTime, Integer telIntegral, Integer slIntegral,
			Double balance, Timestamp lastLogin, String lastIp, String seqno,
			String macKey, String certificatetype, String certificatecode,
			String field1, String field2, String field3) {
		this.muid = muid;
		this.custId = custId;
		this.username = username;
		this.password = password;
		this.esn = esn;
		this.phoneCateg = phoneCateg;
		this.phone = phone;
		this.imsi = imsi;
		this.classid = classid;
		this.status = status;
		this.type = type;
		this.levelId = levelId;
		this.name = name;
		this.telphone = telphone;
		this.email = email;
		this.sex = sex;
		this.birthday = birthday;
		this.pno = pno;
		this.province = province;
		this.city = city;
		this.district = district;
		this.adress = adress;
		this.addChannel = addChannel;
		this.addTime = addTime;
		this.telIntegral = telIntegral;
		this.slIntegral = slIntegral;
		this.balance = balance;
		this.lastLogin = lastLogin;
		this.lastIp = lastIp;
		this.seqno = seqno;
		this.macKey = macKey;
		this.certificatetype = certificatetype;
		this.certificatecode = certificatecode;
		this.field1 = field1;
		this.field2 = field2;
		this.field3 = field3;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	
	@Column(name = "version", length = 20)
	public String getVersion() {
		return this.versionStr;
	}

	public void setVersion(String version) {
		this.versionStr = version;
	}

	@Column(name = "muid", length = 50)
	public String getMuid() {
		return this.muid;
	}

	public void setMuid(String muid) {
		this.muid = muid;
	}

	@Column(name = "cust_id", length = 50)
	public String getCustId() {
		return this.custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	@Column(name = "username", length = 32)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "password", length = 32)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "esn", length = 50)
	public String getEsn() {
		return this.esn;
	}

	public void setEsn(String esn) {
		this.esn = esn;
	}

	@Column(name = "phone_categ", length = 20)
	public String getPhoneCateg() {
		return this.phoneCateg;
	}

	public void setPhoneCateg(String phoneCateg) {
		this.phoneCateg = phoneCateg;
	}

	@Column(name = "phone", length = 32)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "imsi", length = 64)
	public String getImsi() {
		return this.imsi;
	}

	public void setImsi(String imsi) {
		this.imsi = imsi;
	}

	@Column(name = "classid", length = 20)
	public String getClassid() {
		return this.classid;
	}

	public void setClassid(String classid) {
		this.classid = classid;
	}

	@Column(name = "status", length = 1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "type", length = 1)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "level_id")
	public Integer getLevelId() {
		return this.levelId;
	}

	public void setLevelId(Integer levelId) {
		this.levelId = levelId;
	}

	@Column(name = "name", length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "telphone", length = 15)
	public String getTelphone() {
		return this.telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	@Column(name = "email", length = 20)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "sex", length = 4)
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "birthday", length = 0)
	public Date getBirthday() {
		return this.birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "pno", length = 20)
	public String getPno() {
		return this.pno;
	}

	public void setPno(String pno) {
		this.pno = pno;
	}

	@Column(name = "province", length = 20)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "city", length = 20)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "district", length = 20)
	public String getDistrict() {
		return this.district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	@Column(name = "adress", length = 50)
	public String getAdress() {
		return this.adress;
	}

	public void setAdress(String adress) {
		this.adress = adress;
	}

	@Column(name = "add_channel", length = 50)
	public String getAddChannel() {
		return this.addChannel;
	}

	public void setAddChannel(String addChannel) {
		this.addChannel = addChannel;
	}

	@Column(name = "add_time", length = 0)
	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	@Column(name = "tel_integral")
	public Integer getTelIntegral() {
		return this.telIntegral;
	}

	public void setTelIntegral(Integer telIntegral) {
		this.telIntegral = telIntegral;
	}

	@Column(name = "sl_integral")
	public Integer getSlIntegral() {
		return this.slIntegral;
	}

	public void setSlIntegral(Integer slIntegral) {
		this.slIntegral = slIntegral;
	}

	@Column(name = "balance", precision = 22, scale = 0)
	public Double getBalance() {
		return this.balance;
	}

	public void setBalance(Double balance) {
		this.balance = balance;
	}

	@Column(name = "last_login", length = 0)
	public Timestamp getLastLogin() {
		return this.lastLogin;
	}

	public void setLastLogin(Timestamp lastLogin) {
		this.lastLogin = lastLogin;
	}

	@Column(name = "last_ip", length = 20)
	public String getLastIp() {
		return this.lastIp;
	}

	public void setLastIp(String lastIp) {
		this.lastIp = lastIp;
	}

	@Column(name = "seqno", length = 50)
	public String getSeqno() {
		return this.seqno;
	}

	public void setSeqno(String seqno) {
		this.seqno = seqno;
	}

	@Column(name = "mac_key", length = 50)
	public String getMacKey() {
		return this.macKey;
	}

	public void setMacKey(String macKey) {
		this.macKey = macKey;
	}

	@Column(name = "certificatetype", length = 1)
	public String getCertificatetype() {
		return this.certificatetype;
	}

	public void setCertificatetype(String certificatetype) {
		this.certificatetype = certificatetype;
	}

	@Column(name = "certificatecode", length = 20)
	public String getCertificatecode() {
		return this.certificatecode;
	}

	public void setCertificatecode(String certificatecode) {
		this.certificatecode = certificatecode;
	}

	@Column(name = "field1", length = 1)
	public String getField1() {
		return this.field1;
	}

	public void setField1(String field1) {
		this.field1 = field1;
	}

	@Column(name = "field2", length = 1)
	public String getField2() {
		return this.field2;
	}

	public void setField2(String field2) {
		this.field2 = field2;
	}

	@Column(name = "field3", length = 1)
	public String getField3() {
		return this.field3;
	}

	public void setField3(String field3) {
		this.field3 = field3;
	}

}